<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE>
<html>
<head>
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/layout.css" />
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/module_public.css" />
  <script type="text/javascript" src="__PUBLIC__/Js/jquery.js"></script>
  <script type="text/javascript" src="__PUBLIC__/Js/meeting.js"></script>
</head>
<body>
  <div class="module_public">
     <div class="module_public_content">
        <h1> >> 会议室预约 <font color=green><a href="__ACTION__">【刷新】</a></font></h1>
     </div>
     <div class="module_public_main"> 
     <table>
       <tr>
         <td colspan="5" align="center">--&nbsp;会议室列表&nbsp;--</td>
       </tr>
       <tr>
         <td align="center">会议室名称</td>
         <td align="center">是否开放</td>
         <td align="center">是否预约</td>
         <td align="center">是否打扫</td>
         <td align="center">操作</td>
       </tr>
       <?php if(is_array($r_info)): $i = 0; $__LIST__ = $r_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><tr>
         <td align="center"><?php echo ($v["r_name"]); ?></td>
         <?php if($v["r_is_open"] == '1'): ?><td align="center"><font color=green>√</font></td>
         <?php else: ?>
         <td align="center"><font color=red>x</font></td><?php endif; ?>
         <?php if($v["r_is_appointment"] == '1'): ?><td align="center"><font color=red>已预约</font></td>
         <?php else: ?>
         <td align="center"><font color=green>空闲</font></td><?php endif; ?>
         <?php if($v["r_is_clean"] == '1'): ?><td align="center"><font color=green>√</font></td>
         <?php else: ?>
         <td align="center"><font color=red>x</font></td><?php endif; ?>
         <td align="center">
           <?php if($v["r_is_open"] == '1'): ?><a href="__URL__/yuyue_info/r_id/<?php echo ($v["r_id"]); ?>">查看预约使用详细信息</a> |
           <a href="__URL__/yuyue_meetingRoom/r_id/<?php echo ($v["r_id"]); ?>">预约会议室</a>
           <?php else: ?>
           <font color=red>对不起,会议室暂未开放</font><?php endif; ?>
         </td>
       </tr><?php endforeach; endif; else: echo "" ;endif; ?>
     </table> 
     </div>
  </div>
</body>
</html>